
/*
 *
 * All Rights Reserved.
 */
package com.model.demo.designmodel.strategy.promotion;

/**
 * PromotionActivityTest
 *
 * @author Liao Dongshan, 2019年06月11日
 *
 */
public class PromotionActivityTest {
//    public static void main(String[] args) {
//        new PromotionActivity(new CashbackStrategy()).excute();
//    }
//    public static void main(String[] args) {
//        PromotionActivity promotionActivity=null;
//        String promotionKey="COUPON";
//        if("COUPON".equals(promotionKey)){
//            promotionActivity=new PromotionActivity(new CouponStrategy());
//        }else if("CASHBACK".equals(promotionKey)){
//            promotionActivity=new PromotionActivity(new CashbackStrategy());
//        }
//
//        promotionActivity.excute();
//    }

    public static void main(String[] args) {
        new PromotionActivity(PromotionFactory.getPromotionStrategy("COUPON")).excute();
    }


}
